package ru.evga.inse.server.gwt.admin.client;

import ru.evga.inse.server.gwt.admin.client.menu.ContentActivityMapper;
import ru.evga.inse.server.gwt.admin.client.menu.MenuActivityMapper;
import ru.evga.inse.server.gwt.admin.client.menu.MenuView;
import ru.evga.inse.server.gwt.common.client.AbstractAppFactory;

import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.user.client.ui.Widget;


public class AdminAppFactoryImpl
    extends AbstractAppFactory
    implements IAdminAppFactory
{
    private final Shell shell = new Shell();
    private final MenuActivityMapper menuActivityMapper = new MenuActivityMapper(this); 
    private final ContentActivityMapper contentActivityMapper = new ContentActivityMapper(this); 
    private final IViewFactory viewFactory = new ViewFactoryImpl();

    public AdminAppFactoryImpl()
    {
    }

    public Shell getShell()
    {
        return shell;
    }

    public Widget getShellWidget()
    {
        return shell.asWidget();
    }

    public ActivityMapper getMenuActivityMapper()
    {
        return menuActivityMapper;
    }

    public ActivityMapper getContentActivityMapper()
    {
        return contentActivityMapper;
    }
    
    public IViewFactory getViewFactory()
    {
        return viewFactory;
    }
    
}
